package model;

public class InputException extends Exception {
	public static final int DUPLICATE_ID = 1; // 社員番号重複エラー
	public static final int INVALID_INPUT = 2; //
	public static final int BLANK_ID = 3; // 空欄ありエラー

	private int code;

	public InputException(String msg, int code) {
		super(msg);
		this.code = code;
	}

	public int getErrorCode() {
		return code;
	}
}
